package com.code.monitor;

import com.code.monitor.utils.SpringUtils;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@MapperScan("com.code.monitor.mapper")
public class MonitorApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(MonitorApplication.class, args);
        SpringUtils.setAppContext(applicationContext);
    }
}
